package mercurius.fitness.client.rb.diet.forms;

import mercurius.fitness.client.enumtypes.DietMeasurement;
import mercurius.fitness.client.enumtypes.Distance;
import mercurius.fitness.client.rb.diet.Diet;
import mercurius.fitness.client.rb.exercise.Exercise;
import net.pleso.framework.client.bl.forms.items.IFormItem;
import net.pleso.framework.client.bl.forms.items.IFormItemsGroup;
import net.pleso.framework.client.bl.forms.items.impl.EditFormItem;
import net.pleso.framework.client.bl.forms.items.impl.EnumFormItem;
import net.pleso.framework.client.bl.forms.items.impl.FormItemsGroup;
import net.pleso.framework.client.bl.forms.items.impl.InfoFormItem;
import net.pleso.framework.client.bl.forms.items.impl.MultilineEditFormItem;
import net.pleso.framework.client.util.DateUtil;

public class DietForm {
	
	protected static IFormItemsGroup[] groups_log;
	protected static IFormItemsGroup[] groups_nutrition;
	
	

	
	static {
		IFormItem[] items_log = {
			//	new EnumFormItem(Diet.Columns.heightunit, Height.getEnum()),
				new EditFormItem(Diet.Columns.date),
				new EditFormItem(Diet.Columns.time),
				new EditFormItem(Diet.Columns.servings),
				new EditFormItem(Diet.Columns.log_notes)
				};
		
		IFormItem[] items_nutrition1 = {
				new EditFormItem(Diet.Columns.name),
				new EditFormItem(Diet.Columns.serving_size),
				new EditFormItem(Diet.Columns.pdv_kcalories),
				new EditFormItem(Diet.Columns.amount),
				new EnumFormItem(Diet.Columns.amount_measurement, DietMeasurement.getEnum()),
				new EditFormItem(Diet.Columns.calories),
				new EditFormItem(Diet.Columns.fat_total),
				new EditFormItem(Diet.Columns.fat_saturated),
				new EditFormItem(Diet.Columns.fat_monounsaturated),
				new EditFormItem(Diet.Columns.fat_polyunsaturated),
				new EditFormItem(Diet.Columns.fat_trans),
				new EditFormItem(Diet.Columns.cholesterol),
				new EditFormItem(Diet.Columns.sodium),
				new EditFormItem(Diet.Columns.potassium),
				new EditFormItem(Diet.Columns.carb_total),
				new EditFormItem(Diet.Columns.carb_fiber_dietary),
				new EditFormItem(Diet.Columns.carb_fiber_soluble),
				new EditFormItem(Diet.Columns.carb_fiber_insoluble),
				new EditFormItem(Diet.Columns.carb_sugar),
				new EditFormItem(Diet.Columns.carb_other),
				new EditFormItem(Diet.Columns.protein),
				new EditFormItem(Diet.Columns.Vitamin_A_retinol),
				new EditFormItem(Diet.Columns.Vitamin_C_scorbic),
				new EditFormItem(Diet.Columns.Mineral_Ca_Calcium),
				new EditFormItem(Diet.Columns.Mineral_Fe_Iron),
				new MultilineEditFormItem(Diet.Columns.nutrition_notes,3),
				};
		
		IFormItem[] items_nutrition2 = {
				
				new EditFormItem(Diet.Columns.Vitamin_B12_cyanocobalamin),
				new EditFormItem(Diet.Columns.Vitamin_B1_thiamine),
				new EditFormItem(Diet.Columns.Vitamin_B2_riboflavin),
				new EditFormItem(Diet.Columns.Vitamin_B3_niacin),
				new EditFormItem(Diet.Columns.Vitamin_B5_pantothenic),
				new EditFormItem(Diet.Columns.Vitamin_B6_pyridoxine),
				new EditFormItem(Diet.Columns.Vitamin_B7_biotin),
				new EditFormItem(Diet.Columns.Vitamin_B9_folic),
				new EditFormItem(Diet.Columns.Vitamin_choline),
				new EditFormItem(Diet.Columns.Vitamin_D_calciferol),
				new EditFormItem(Diet.Columns.Vitamin_E_tocopherol),
				new EditFormItem(Diet.Columns.Vitamin_K_naphthoquinone),
				new EditFormItem(Diet.Columns.Mineral_Br_Bromine),
				new EditFormItem(Diet.Columns.Mineral_Co_Cobalt),
				new EditFormItem(Diet.Columns.Mineral_Cr_chromium),
				new EditFormItem(Diet.Columns.Mineral_Cu_Copper),
				
				new EditFormItem(Diet.Columns.Mineral_Ge_Germanium),
				new EditFormItem(Diet.Columns.Mineral_I_Iodine),
				new EditFormItem(Diet.Columns.Mineral_Mg_Magnesium),
				new EditFormItem(Diet.Columns.Mineral_Mn_Manganese),
				new EditFormItem(Diet.Columns.Mineral_Mo_Molybdenum),
				new EditFormItem(Diet.Columns.Mineral_P_Phosphorus),
				new EditFormItem(Diet.Columns.Mineral_S_Sulfur),
				new EditFormItem(Diet.Columns.Mineral_Se_Selenium),
				new EditFormItem(Diet.Columns.Mineral_V_Vanadium),
				new EditFormItem(Diet.Columns.Mineral_Zn_Zinc)
				};
		
		groups_log = new IFormItemsGroup[] { 
					new FormItemsGroup(null, items_log)
				};
		
		groups_nutrition = new IFormItemsGroup[] { 
				new FormItemsGroup("General Nutrients", items_nutrition1),
				new FormItemsGroup("Other Micro-Nutrients", items_nutrition2),
			};
	}
	 
}
